package org.dromara.hm.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.hm.domain.HmCustomer;
import org.dromara.hm.domain.HmStock;
import org.dromara.hm.domain.vo.HmCustomerVo;
import org.dromara.hm.domain.vo.HmStockVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 库存数据Mapper接口
 *
 * @author zy Hu
 * @date 2024-12-15
 */
public interface HmStockMapper extends BaseMapperPlus<HmStock, HmStockVo> {


    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "product_dept"),
    })
    default <P extends IPage<HmStockVo>> P selectVoPage(IPage<HmStock> page, Wrapper<HmStock> wrapper)
    {
        return BaseMapperPlus.super.selectVoPage(page, wrapper);
    }
}
